﻿using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;

namespace good1.Data.NHibernateMaps.Conventions
{
    public class HasManyConvention : IHasManyConvention
    {
        #region IConvention<IOneToManyCollectionInspector,IOneToManyCollectionInstance> Members

        public void Apply(IOneToManyCollectionInstance instance)
        {
            instance.Key.Column(instance.EntityType.Name + "Fk");
        }
        #endregion

    }
}
